change enum for resource state