discard dup code