implemented dump buffer