clamp input of log