refactor and creation of epoch {}