correct style and use of resource params