upon searching, the data structure is cloned and returned