clamp functions support multiple units
secure bear form stuff