history becomes buffer