filter by template type