rearrange params of history call