added af filter to pi