tuning the template to meet the format requirements