template assignment