correct Ruby syntax error