add receivedData to main