added monitoring func
monitoring