children function added - well half of it