besides mandating the turnover of the canal , the treaties returned jurisdiction of most of the canal zone to panama in 1979 and set a schedule for the gradual drawdown of u.s. troops and the closing of military bases .