added eventadapter to add method