finish term_ok_term_to_deep