code refactoring in CentralPlanning.java