for scalac RBM.scala