add mod to modify value differently then a linear function