transfering data to the server