add saving the result