corrected mis-reference to template restrict instead of template dynamic