format and wrapper template