updates to email so it works