US stocks up in afternoon trading