save final result