why is it a static variable here?