added array write