updated with resource state table