[Ruby 2.0.0] this has to be inside to block
[Ruby 2.0.0] DRY this up