simplified to byte only with no other logic
nextBuffer and logic fix