changed the function calls to new-datastructures (only cal is used in call of functions)
need to ensure when Ex_t and when Ex is to be used.
Any ideas to that?