speedup by reducing attribute lookups