fixed warnings from static variables