modify some code for new camera