template problem を部品化