setting up device