modification to add data to request data parameter