weight update problem