chnage matipp_recon_all so that only when there are 3 part of names, like a_b_c it will keep the first two part a_b, oterwise it will keep the first part a