same for epochs averaging
same for epochs averaging mod