Rewriting small buffer system