fixed name of flow stats function