added global initializer function