more work on populating state space