added comment on replacement function.