make the buffer limitation more friendly