to add replace function ok