rename to scatmc
escape function added