added two methods to methods.rb