factory scheduling