make the template a little more resistant to missing data