minor potential speedup