algorism modify