edited mailbox.c