Update midpointlistener1.cpp