update clear script