add scan and saving