potential fix for duplicate entries sometimes