buffer slicing fuckup