try to make switch faster