static template
add generate_static