add clause for no user agent