some change in SimpleAlgorithm