working on RBM and DBN