correctly split declarations for static variables