removed a deepcopy in get switch list