changed check on filter.id