making edges vertical