more scala problems