limited end_range to file size