finding edges with filters