move markedToDelete and markToDelete to be private in the MonitorElement class