added a method to add effects