experiment with sorted buffer