reset function for update_client