added code to support updating camera position