fixed syntax for older ruby