replace now works