modify template file