fixed issues with getData function. need a slightly more complex tree and we are done. -MM