running errors due to oldder version of ruby