hotfix of replacementAlgoritme