changed threshold for epochs