more functional error check
adding device query