change location.rb and location selection in s.r.