device scala problem