comparison in templates