oops, forgot to tailor border check to axis