very small optimization to avoid constant getName() calls