change to_a to square braces for ruby 1.9.3