modified charater.rb