functions arguments to templates must not be static