looping thru result to make the list unique

this feels a bit like a hack and to honest it is one