delete unnecessary judgment of none value