small nest refactoring
empty buffer by default