performance fixes

...n.rb