added template setting to false to allow for total function output