delete unnecessary conditions