make content array, move keys to children