made camera global and added temperature