added set res to api