optimize when checkMonitoring gets called