refactor and rename placeChildren