tidy up scratch