Replacing adaptation algorithm