updated function name in email api