checking array number and listnumber
checking device ID