integrate for template