add method for updating repository data