template conversion to macro from former