made the first argument optional for adding a child.