range should be optional

that will be
`Cannot read property 'length' of undefined`