added a replace_token