delete dead code from monitor