adjust for Scala: Type Mapping