changed the camera back to a class