rewrite build meta info function