adding map and clamp to mathx