modified ruby file