better to reverse in template