adding a dynamic effect