added and tested boundaries