function to accept a request and update model were placed