testing for flag differences; ERRORS PRESENT