optimize for last commit