minor profiling speedup