removed unused buffer