rearrange debug