saved replacement function with comments.