Rearrange cap trasks