implement real time analysis