refactoring for joonBuffer