ruby18 compatible improve

remove a ruby19 new syntax