add check for stored distance matrix again