Change algorithm X