function for testing added
Child determine snippet