cw_embedding:
added gen noise function