added update visited construct + method transform