rearange qmp