implemented auto escaping