call transformFunction not until stream is completed
add mail