rewrite of replaceColName