customize merged template