rewrites seek method

avoids buffer shifting.