modify ways.rb model