trying to debug the hardcoded element indexing scheme