decided to implement dictionary function as a avl bespokely