added sm.scala