routine email function skeleton added