Arraydata in arraydata function