bug fixes on duplicates obs