seperate out good rows and bad rows