mod update for replacement function