why are this lines necessary? The varaibles should be set in the template_manipulation signal