added camera functions