modified some params and remove TriggerError method