used immutable map in request generation