static block moved into public static method