trying to get organizeChildren function to work