adding substitute so \$1 gets $1 (escaping of variables)