added flush visited object stack