working on dynamic event tree creation.