add new constructor with event param