enable template with range