working on ResourceMap class