update inputbuffer