added wup, wdown, updapt, updapt2