similar changes for ruby