a
error checking and mail