moved update into camera