global replace is dangerous