How to change the effect of an object