deleting redundant rows