checking device availability