minor speedup