modifying resources map