added data param to 'trigger' method.