changedd initialization/finalization