changed position of email script