now you can set res as well