add name_format as a third argument