complete history-input