returning resources