split short side
added tol
bugfixes