add design for template and mapping