switch to templetr