make change to the Generic algorithm