added paritycheck for dealing with multi-line entries