modify the ruby script