if params[:id] is nil, then it would translate to id 0