reordering of variables