create event not working