udate effect method.

and test code.