add flatten_lanl_hla function