sub resource working