first attempt for tempalates hierarchy