Renaming parentFunction to output parentFuction