add helper for template operation