last step to remove unnecessary monitoring code