Perform some changes

algorithm's errors