escape when function replacement