core code now access the variable array directly