RBM almost finshed