corrected params[:cv] variable