added mark duplicates