broken the build, but figured out what the problem was. Needed to use END and EACK to flag end of the calculation