updating at the proper time