add initializing dimensions to template