first implementation of buffer-offsetting for testing