tiny performance optimization to last commit