trying to fix some issues with the list and duplicates checked
fixing bugs...