solved overflow in schedule