replace globally, not just first