put init in main