fix inialization order