re-arrange some elements