clean the template a bit