remove white space for template model