make RBM modulize