parse received data