implemented preparing on event