add range for onrequest