allows for duplicate entries, but only counts the last one