change to global template