added changes for ruby version