small changes for ruby