adding input for the values
shaping algorithm