update for determinging best schedule