CUIT algorithm corrected