an attempt to optimize out unnecessary cases.