use StatMachine library to calculate second half record