add extract_remaingin_length