adding code for initiate event