added functionality to apply second filtering phase of AP