create device works