added function to send corrections to the server