refactor for busBuffer and code of backspace