work on refactoring triangular meander