update the camera