added check to monitoring variable