deal with full buffer