redordering of elements