something is wrong with buffer creation