function to get a list of parent objects