modify RBM and DBN