duplicate condition fixed