ruby 2.1 compatible syntax