add saving scratch