public to res