revise RBM, fix width