add monitor syntax and modify example