restructure job states