changing the steps to have a value and a length