calling and emailing functions added