updating from local clone
modiefied the script based on rubocop tests