fixed old ruby syntax