use directly Device Mapping in code