working on device selection