fixed fseek call. output looks good