added function mail