refactoring (allow more than 2 points in order)