added reordering model