update engine.rb