found bug in exp table lookup. seems to be reading off the end of the array