add default value to name argument of gaingTemplate constructor to avoid error.