update scratchpad