used map destructuring in bst file