just to write RBM