updated entity.template snippet