take in 'parent' element if not present sets to null