edited profile nano_template_parser function