made changes to bard.rb