added interactive switch