added camera code