implemented getResource