add relation to general model to J and R