eliminate duplicate states