filter qualifier and criteria in templates