working on rbm stuff