added counting succeeded/failed