removed unnecessary variables, removed unnecessary opening of repo