Appending the functional group X on a PyC ligand with a reasonable geometry. Finally, given a functional group X, we align it onto the specified ortho or meta substitution site on each PyC ring of the parent MOF and replace the H atom at the substitution site with the X group in a reasonable geometry.