improvement to the mail sensor