buffer debugged 2.0