add function in camera