fixed pet.rb