remove email function