ray_adjusted for header