last ditch..then different datastruct
new ds

create a key for every layer which you can iter over