add phase filtering