extend: template contiditions