changed over to Scala Enumerations