created 3 level-template