an buffer for scanner