change getLastMath to getCurrentMatch