code for update server