modify snippet elseif