add deviceInfo method