added parent for functions