removed comment
refactored parentTypes calculation
added (failing) test for parentMarkers match