weight update debugging