fixed email output