add max_element feature for chain