slight modification just for readability
remane: format -> template