Renamed the parentDoc() method to doc()