replaced slot() with mem_fun() and ptr_fun().