refactors file structure of repository