scratch clearing script