box alignment phase 1
adding resetPaths function