slightly refactored  __logSeek__  function