small changes to main, u1, and run to allow rotated edge