expanding template