coding for ch10. on alert directive's directive