update clear code