removing depricated function calls "child"