added limit for older ruby