try fixing replace