finish initialization