minor refactoring of class Boundary