updated camera  functions and time.