rearrange code a bit in order to be able to calculate proportion of ABP filters used relative to total