updating the getallresources to map