set working state