use a filter for type