move the ```def unique``` here