setting initial value of switchs to true