working of buffer read errro