add some scala problem