addDevice method