using resource q simply