new helper template code and examples