speed select logic is corrected