cw: linear function.