update history and usage