Modified filter by branches