add replace to demo