add a red black tree for handle