update dict
fix ordering bug