made it skip adding if it already existed in the dictionary