changed template scheme