add template method make_array