added switch for slots