add todo
fix: set the empty root as leaf
fix: compare key with correct object