new improved template scheme