preparing full data to be sent to server