appendChild => replaceChild