added state to sked a table