fixed an elseif