changed names.rb so that it works with main