limit number of callbacks to byte range