array data working fine