updates to similarity score