almost finish initialization