using tell() instead of pos