end switches