update res and code
update