moved computing of offset to camera