populateParents function

Assign Parent