change init_repository order