add template check record fuction