now works in every octant