added template to gamma and delta codings