change the definition of function 'cur'.