reinitialisation of repo