text alignment fix
I should add support for enumerable root cases
Updated variable scoping