fix custom watch function

block as parameter need '&'