add scaling factor to template