event.c updated