initialization of shared variables