simplifying buffer full check