rearrange <head>