moving static to templates