changes to camera code