minor tweak to Bill's pull request: prefer 'defaultdevice' as variable