clamping the numerical values
added an end to the task