gem reordering