refactored resetCamera into camera.reset