function that list existing devices