writeRes Table