added output/ff function calculation to be used in matching