change tree keys type to Object