removing duplicated condition