added parent relationship
refactoring