performance improvements when parsing