minor performance optimization