compress template a bit