added filter to avoid duplicate ICSD structures with different ids