diff state and resource