added check for parents, and made sure parents are correct.