change to if not doNotPrint