Changed elimination to check one by one