removing extra user agent lines