refactored so that I am actually using recursion in indentation array and hash works