map and level order update