fixed location of data exception generation