updating req to res data