rearrange Request code