accomplish the show children function