fixed device name comparision