initializing after all is loaded