wrap your static object inside a function.