correct rays to all directions