pass the index to transformer functions when inside an array
debug statements cleanup
function rename
refactoring - start
refactoring - in progress