Function created for childs