add finalized nessary codes, please add related template values