avoid ruby 2.0 enumerable warnings