remove duplicate condition