added a filter to remove template items.