add prev_id