get rid of really dumb code, iterators should be cloned using the proper methods... not malloc and assignment