fixing what may be a ruby syntax error