reorganize gems