fixing up camera code