updated types in scala