clamp input/output works.  Improvements only very minor