migrated to Ruby v2