go rbm in 200 lines