uncomment code to add class pointer to the element
remove redundant var settings