maybe remove the $escape here too, and $escape function definition.