made events optional of guards and actions