delete old monitor code