added function compare_tped_with_bgl_or_gen