removes scratchpad