update history and version