add function to clamp mapped values to new range