removing use of include_array in templates