added tos and replacement variables