rearrange the resources