update in AbstractAlgorithm