update about takesnapshot function in analyzer