updates for similarity