implemented the camera