fixed a misconception in buildChildren
added boolean to boundary