added method to remove duplicate patients from labels