corrected requirement calculation.  herring --debug now working