add new method to retrieve resources based on its status