make funcs nonstatic