initialize the local-variables in the static functions