cleanup buffer nums