delete obsolete elseif