first argument to construct is the device instance
fixed namespace
bugfix: added missing brace