make sure not to send duplicate emails