working on device controlling