adding scale factor for templates