Rearrange A rules