removing unused variables which used stringify unecessarily and caused issues with circular objects (i.e. html element)