template pattern changed