checking for templatedata