made buffer 4096 bytes