added the camera function