replacedfn call