task ordering and states