resolved nested array issue