minor changes to code for chicken.rb