fixing indentation in escape function definition