Adding replaceInSelAP