deleted function and email