changes to ruby script