set correct device