update RBM