reverted undefined check template