added function to update evets