updated ruby file