updating server side