removed template helper debug since cannot access global variables