throwing error, not returning, return can be invalid when no wrapper for templates