fix always modified bug
colletion都作为参数传入而不是在逻辑代码中创建
use global.monitors as monitor list
change monitors from Array to monitors for better indexing