add method to createURLRequest