add assign range logic

it's refer to download dispather.