rendering now works for all directions