part-way through similarity calulations