includes TP and FP calculation