use ruby ranges