modify log model and finish all function