rename res to relation