changed static to templates