avoid using %i which fails on ruby 1.9