partial solution to problem

doesn't remove duplicates