fixed naming error with type of devive