added similarity iterator
implemented analysis iterator