small edits to monitoring function