moved templist to class level so it doesn't get created over and over
again.