why pass in the `number` here? (should just be the children count, right?)