seperates good and bad rows