working on container type for matches; putDuplicates not working currently; crash