clear dup code