modified filter for template location