```\nfunction \_updateEpochsInfo() internal {\n  uint256 \_totalEpochTime = block.timestamp.sub(epochStartTime);\n  uint256 \_countOfPassedEpoch = \_totalEpochTime.div(epochDuration);\n\n  uint256 \_lastEpochUpdate = currentEpochNumber;\n  currentEpochNumber = \_countOfPassedEpoch.add(1);\n\n  for (uint256 i = \_lastEpochUpdate; i < currentEpochNumber; i++) {\n    totalCoverTokens = totalCoverTokens.sub(epochAmounts[i]);\n    delete epochAmounts[i];\n  }\n}\n```\n