processParents function

Process parents information