fixed so that only 1 email goes out per epoch