fixed syntax error with ruby2