add user agent method