testing and printfing received data