correct rays from angle 0 to 270