Doc and state