update ordering