factory replanning