fixed the edge direction bug, should no longer matter