adding email settig and pushing returning function