who needs static variables when using a template? :)