analysis of "cannot insert item into set"