remove duplicated condition