fixed the parentFunction not passing in int