Method and apparatus for data processing in a wireless communication system