removed console.logs and changed indexing unique to true.