added error insert for cw